package com.lu.dao;

import com.lu.entity.News;
import com.lu.entity.Page;

import java.util.List;

public interface NewsDao {
    List<News> getAllNews();
    List<News> getSomeNews(String keyWord);
    List<News> getSomeNews(Page page);
    List<News> get20News();
    List<News> get20News(int ntid);
    int getCountNews();
    News getOneNews(int nid);
    News getOneNews(String ntitle);
    int deleteOneNews(int nid);
    int insertOneNews(News news);
    int updateOneNews(News news);
}
